package org.dromara.system.domain.bo;

import org.dromara.system.domain.TUserWalletFlow;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;

/**
 * 用户钱包流水业务对象 t_user_wallet_flow
 *
 * @author Miles Meng
 * @date 2025-08-08
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = TUserWalletFlow.class, reverseConvertGenerate = false)
public class TUserWalletFlowBo extends BaseEntity {

    /**
     * 钱包流水ID
     */
    @NotNull(message = "钱包流水ID不能为空", groups = { EditGroup.class })
    private Long walletFlowId;

    /**
     * 流水类型;INC 增加；DEC 减少；
     */
    @NotBlank(message = "流水类型;INC 增加；DEC 减少；不能为空", groups = { AddGroup.class, EditGroup.class })
    private String flowType;

    /**
     * 变更点数
     */
    @NotNull(message = "变更点数不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long changePoints;

    /**
     * 变更说明
     */
    @NotBlank(message = "变更说明不能为空", groups = { AddGroup.class, EditGroup.class })
    private String changeDesc;

    /**
     * 用户id
     */
    @NotNull(message = "用户id不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long userId;


}
